using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using NHibernate.Mapping.ByCode.Conformist;
using NHibernate.Mapping.ByCode;
using Domain.UQBuy.Model.Entity;


namespace Domain.UQBuy.Model.Map {
    
    
    public class SysMenuMap : ClassMapping<SysMenu> {
        
        public SysMenuMap() {
			Table("SYS_Menu");
			Schema("dbo");
			Lazy(true);
			Id(x => x.MenuId, map => { map.Column("Menu_ID"); map.Generator(Generators.Assigned); });
			Property(x => x.MenuName, map => { map.Column("Menu_Name"); map.Length(255); });
			Property(x => x.MenuCode, map => { map.Column("Menu_Code"); map.Length(255); });
			Property(x => x.MenuParentid, map => { map.Column("Menu_ParentID"); map.Length(255); });
			Property(x => x.MenuLevel, map => { map.Column("Menu_Level"); map.Precision(10); });
			Property(x => x.MenuSort, map => { map.Column("Menu_Sort"); map.Precision(10); });
			Property(x => x.MenuCreatedate, map => map.Column("Menu_CreateDate"));
			Property(x => x.MenuState, map => { map.Column("Menu_State"); map.Precision(10); });
        }
    }
}
